<?php 
include("module/brand/includes/plugin_brand_class.php");
//================================
if(!empty($_GET['key']))
	$_GET['id']=$_GET['key'];
if(!empty($_GET['id']))
{
	$mybrand=new brand();
	$re=$mybrand->brand_content($_GET['id']);
	$tpl->assign("brand",$re);
	
	if(!empty($re['agent_id']))
	{
		$agent=$mybrand->get_brand_agent($re['agent_id']);
		$tpl->assign("agent",$agent);
	}
}
//===========================
$tpl->assign("current","brand");
include("footer.php");
$out=tplfetch("brand_content.htm");

?>
